package com.hilon.aixinmis1.base.flow;

import com.hilon.foundation.base.EntityBaseId;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
@NoArgsConstructor
@Entity
public class FlowControl extends EntityBaseId implements Serializable {
    //    categoryType+categoryTypeDetail  用于分类控制各种流程
    @Column(columnDefinition = "VARCHAR(50) DEFAULT ''")
    private String entityName; //主表实体类名
    private Long idReceipt;  //单据ID, 加上主表 实体类名 唯一確定單據
    @Column(columnDefinition = "VARCHAR(20) DEFAULT ''")
    private String personSubmit; //提交人
    //    @Temporal(TemporalType.DATE)
    private Date dateSubmit; //流程处理提交请求日期
    @Column(columnDefinition = "VARCHAR(6) DEFAULT ''")
    private String levelFlowHandle; //第几级
    @Column(columnDefinition = "VARCHAR(20) DEFAULT ''")
    private String personFlowHandle; //流程处理人
    //    @Temporal(TemporalType.DATE)
    private Date dateFlowHandle; //流程处理日期
    @Column(columnDefinition = "VARCHAR(20) DEFAULT ''")
    private String conclusionFlowHandle; //流程处理结论：通过，驳回
    @Column(columnDefinition = "VARCHAR(255) DEFAULT ''")
    private String describeFlowHandle; //流程处理备注
    @Column(columnDefinition = "VARCHAR(20) DEFAULT ''")
    private String statusStr; //当前流程处理状态
    @Column(columnDefinition = "VARCHAR(100) DEFAULT ''")
    private String handleInfo; //当前流程处理状态
}
